home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17672 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  30 lines

  1. Path: ccshst05.cs.uoguelph.ca!ccshst01!thay
  2. From: thay@uoguelph.ca (Toby K Hay)
  3. Newsgroups: comp.os.linux.setup,comp.os.linux.misc,comp.os.linux,comp.lang.c,comp.lang.c++
  4. Subject: Re: problems with GCC
  5. Followup-To: comp.os.linux.setup,comp.os.linux.misc,comp.os.linux,comp.lang.c,comp.lang.c++
  6. Date: 17 Apr 1996 03:42:40 GMT
  7. Organization: University of Guelph
  8. Message-ID: <4l1pbg$ac2@ccshst05.uoguelph.ca>
  9. References: <4l1and$iql@news.ran.es>
  10. NNTP-Posting-Host: ccshst01.uoguelph.ca
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Chano G≤mez Martφnez (chano@ran.es) wrote:
  14. : First of all, I want to apologize for my awful English.
  15.  
  16. : I'm trying to port a C program from Borland C++ 3.1 to GCC under
  17. : Linux.
  18. : My problem is that I can't use any function from math.h !!!
  19. : The file is correctly #include'd ( in fact, I get no compilation
  20. : errors ) but the linker always tells me something like :
  21. snip
  22. Your English is impeccable.  I expect your only problem with gcc is that 
  23. you've neglected to link the math library by typing -lm when you invoke 
  24. gcc.  I use cc to compile and link my ANSI C programs developed in Turbo 
  25. C 3.1 with the following command: 
  26. cc MyProg.c -lm -O
  27. I expect gcc is the same.
  28. Toby Hay    thay@uoguelph.ca
  29.  
  30.